// 取出来调用后端接口的地址
import { API_CONFIG } from "../config/index.js";
import request from "../api/index.js";
// 在很多位置，都可能用到同一个接口
export const getStatefulSetListHandler = (clusterId, namespace) => {
    return request(API_CONFIG.getStatefulSetListApi, {clusterId, namespace}, "get", "2000")
}

export const deleteStatefulSetHandler = (clusterId, namespace, name) => {
    return request(API_CONFIG.deleteStatefulSetApi, {clusterId, namespace, name}, "post", "2000")
}
// 
export const createStatefulSetHandler = (data) => {
    return request(API_CONFIG.createStatefulSetApi, data, "post", "2000")
}

export const updateStatefulSetHandler = (data) => {
    return request(API_CONFIG.updateStatefulSetApi, data, "post", "2000")
}

export const getStatefulSetDetailHandler = (data) => {
    return request(API_CONFIG.getStatefulSetApi, data, "get", "2000")
}


